#pragma once
#include "Session.h"

class Contact
{
public:
	AStr name;
	AStr mobileno;
	AStr uri;
	AStr uid;
	AStr fxno;
	int basic;
	
	Contact* next;
	
	Session se;
	
	Contact()
	{
		basic = 0;
		next = NULL;
	}
	
	bool Is(const char* f)
	{
		if (f)
		{
			if (name.isne() && name.include(f)) return true;
			if (mobileno.isne() && mobileno == f) return true;
			if (uri.isne() && uri == f) return true;
			if (uid.isne() && uid == f) return true;
			if (fxno.isne() && fxno == f) return true;
		}
		return false;
	}
	
};
